package com.example.shop.commodity.service;

import com.example.shop.base.BaseService;
import com.example.shop.commodity.entity.ShopCart;
import com.example.shop.commodity.dao.ShopCartDao;

import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author hcj
 * @date 2021-09-21 19:06:31
 */
@Service
public class ShopCartService extends BaseService<ShopCart, ShopCartDao> {
    public ShopCart get(String id,String uid) {
        return dao.getById(id,uid);
    }

    public List<ShopCart> selectTotal(String uid) {
        return dao.getByUid(uid);
    }
}